package com.mini.repository;

import com.mini.model.BusinessChanceWechat;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author shixiaopeng  on 2020/12/2
 */
@Repository
public interface BusinessChanceWechatRepository extends JpaRepository<BusinessChanceWechat, Long>, JpaSpecificationExecutor<BusinessChanceWechat> {

    BusinessChanceWechat findByWechatNo(String wechatNo);

    BusinessChanceWechat findByWxId(String wxId);

    List<BusinessChanceWechat> findByChanceId(Long chanceId);
}
